class CreateCompanies < ActiveRecord::Migration
  def self.up
    create_table :companies do |t|
      t.string :name
      t.text :address
      t.string :sub_district
      t.string :district
      t.string :province
      t.string :zip_code
      t.string :tel
      t.string :fax
      t.string :email
      t.string :website
      t.string :type_of_business
      t.integer :total_employee
      t.string :com_name
      t.string :com_surname
      t.string :com_position
      t.string :com_department
      t.string :camt_name
      t.string :camt_surname
      t.string :camt_position
      t.string :camt_department
      t.string :camt_tel
      t.timestamps
    end
  end

  def self.down
    drop_table :companies
  end
end
